package com.activiti.service.impl;

import org.activiti.engine.HistoryService;
import org.activiti.engine.IdentityService;
import org.activiti.engine.ManagementService;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.spring.ProcessEngineFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.activiti.service.IActivitiService;

@Service
public class ActivitiServiceImpl implements IActivitiService{
	
	@Autowired
	IdentityService identityService;
	
	@Autowired
	RuntimeService runTimeService;
	
    @Autowired
    RepositoryService repositoryService;
    
	@Autowired
	ManagementService managementService;
	
	@Autowired
	ProcessEngineConfiguration processEngineConfiguration;
	
	@Autowired
	ProcessEngineFactoryBean processEngine;
	
    @Autowired
    HistoryService historyService;
    
    @Autowired
    TaskService taskService;

	@Override
	public IdentityService identityService() {
		// TODO Auto-generated method stub
		return identityService;
	}

	@Override
	public RuntimeService runtimeService() {
		// TODO Auto-generated method stub
		return runTimeService;
	}

	@Override
	public RepositoryService repositoryService() {
		// TODO Auto-generated method stub
		return repositoryService;
	}

	@Override
	public ManagementService managementService() {
		// TODO Auto-generated method stub
		return managementService;
	}

	@Override
	public ProcessEngineConfiguration processEngineConfiguration() {
		// TODO Auto-generated method stub
		return processEngineConfiguration;
	}

	@Override
	public ProcessEngineFactoryBean processEngineFactoryBean() {
		// TODO Auto-generated method stub
		return processEngine;
	}

	@Override
	public HistoryService historyService() {
		// TODO Auto-generated method stub
		return historyService;
	}

	@Override
	public TaskService taskService() {
		// TODO Auto-generated method stub
		return taskService;
	}

    
}